package com.fangngng.pushall.service;


import com.fangngng.pushall.dto.RequestUserVO;
import com.fangngng.pushall.entity.User;
import com.github.pagehelper.PageInfo;

/**
 * @author fei.fang
 * @date 2021/1/18
 **/
public interface UserService {

    /**
     * 查询用户
     * @param userVO
     * @return
     */
    PageInfo<User> findByUser(RequestUserVO userVO);

    /**
     * 根据email查询用户
     * @param email
     * @return
     */
    User findByEmail(String email);

    User addUser(User user);

    User deleteUser(User user);

    User editUser(User user);

}
